﻿import Router from 'vue-router'
import Adventure from "../Adventure_index.vue"
const ad_user_index = r => require.ensure([], () => r(require('../ad_user_index.vue')));
const full_Scroll = r => require.ensure([], () => r(require('../scroll_full.vue')));
const Adventure_visit = r => require.ensure([], () => r(require('../Adventure_index_visit.vue')));
const ad_list = r => require.ensure([], () => r(require('../ad_list.vue')));
const user_index = r => require.ensure([], () => r(require('../../user_index/user_index.vue')));
import input_new_ad from "../new_ad/input_ad.vue";
import default_card from  "../default_card_show/default_card_show.vue";

const beginner_m_wrapper  = r=> require.ensure([], ()=> r(require('../BeginnerMode/beginner_m_wrapper.vue')));
const bg_get_img = r => require.ensure([], () => r(require('../BeginnerMode/bg_get_img.vue')));
const bg_get_voice = r =>require.ensure([], () => r(require('../BeginnerMode/bg_get_voice.vue')));
const bg_get_msg = r =>require.ensure([], () => r(require('../BeginnerMode/bg_get_msg.vue')));
const bg_get_msg_m = r =>require.ensure([], () => r(require('..//BeginnerMode/bg_get_msg_m.vue')));

const input_limit_card =r=>require.ensure([], () => r(require('../input_limit_card/input_limit_card.vue')));
export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/Adventure",
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
      },
    {
        path: "/ad_list",
        component:ad_list
    },
    {
        path: "/ad_user_index",
        component: ad_user_index
    },
    {
        path: "/Adventure",
        component: Adventure
    },
    {
        path: "/full_Scroll",
        component: full_Scroll
    },
    {
        path: "/Adventure_visit",
        component: Adventure_visit
    },
    {
        path: "/user_index",
        component: user_index
    },
    {
      path:"/input_new_ad",
      component:input_new_ad
    },
    {
      path:"/default_card",
      component:default_card
    },
    {
      path:"/input_limit_card",
      component:input_limit_card
    },
    // {
    //   path:"/new_1",
    //   component:new_1
    // },
    {
      path:'/beginner_m_wrapper',
      component:beginner_m_wrapper,
      children: [
        {
          // 当 /user/:id/profile 匹配成功，
          // UserProfile 会被渲染在 User 的 <router-view> 中
          path: 'bg_get_img',
          component: bg_get_img
        },
        {
          // 当 /user/:id/posts 匹配成功
          // UserPosts 会被渲染在 User 的 <router-view> 中
          path: 'bg_get_voice',
          component: bg_get_voice
        },
        {
          path:"bg_get_msg",
          component:bg_get_msg
        },
        {
          path:"bg_get_msg_m",
          component:bg_get_msg_m
        }
      ]
    }

    ],

})
